﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Merchant.aspx.cs" Inherits="points.Merchant" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="head" runat="server">
    <title>Merchant</title>
    <link rel="Stylesheet" type="text/css" href="Styles/Site.css"/>
</head>
<body>
    <form id="frmMain" runat="server">
    <asp:SqlDataSource ID="sqlDS" runat="server" 
        ConnectionString="<%$ ConnectionStrings:POINTS_PROD %>" SelectCommand="select tt.pk,tt.name
from transaction_type tt order by tt.name_canon"></asp:SqlDataSource>

    <div>
        <table>
        <tr><td><asp:Label ID="lblMessage" runat="server" Text=""></asp:Label></td><td><asp:Label ID="lblResponse" runat="server" Text=""></asp:Label></td></tr>
        <tr><td><asp:Label ID="lblUsername" runat="server" Text="Label">Username:</asp:Label></td><td><asp:TextBox ID="txtUsername" runat="server"></asp:TextBox></td></tr>
        <tr><td><asp:Label ID="lblDollarVal" runat="server" Text="Label">Dollar Value:</asp:Label></td><td><asp:TextBox ID="txtDollar" runat="server"></asp:TextBox></td></tr>
        <tr><td><asp:Label ID="lblTransactionType" runat="server" Text="Label">Transaction Type:</asp:Label></td><td>
            <asp:DropDownList ID="ddlTransactionType" runat="server" DataSourceID="sqlDS" 
                DataTextField="name" DataValueField="pk"></asp:DropDownList></td></tr>
        <tr><td colspan="2"><asp:Button ID="btnSubmit" runat="server" Text="Submit" onclick="btnSubmit_Click"/></td></tr>
        </table>
    </div>
    </form>
</body>
</html>
